package org.hackystat.iw.projectoverviewer.page.treemap;

import static org.junit.Assert.assertNotNull;
import net.sf.jtreemap.swing.JTreeMap;
import net.sf.jtreemap.swing.TreeMapNode;
import org.junit.Test;

/**
 * Test for the JTreeMap applet.
 * 
 * @author Jianfei Liao
 */
public class TestJTreeMapApp {
  /**
   * Tests the applet.
   */
  @Test
  public void testTreeMapApplet() {
    // test the applet instance
    JTreeMapApp app = new JTreeMapApp();
    app.init(); // many GUI interactions are not tested
    
    assertNotNull("The applet instance is not null", app);
    
    // test the tooltip class
    IWToolTip tooltip = new IWToolTip(new JTreeMap(new TreeMapNode("TestTreeNode")), "", "", true);
    assertNotNull("The tooltip instance is not null", tooltip);
  }
}
